Skip to content

Comments

Openbao support#8

Merged
tobikris merged 1 commit intomainfrom
openbao-support
Aug 24, 2025
Merged

Openbao support#8
tobikris merged 1 commit intomainfrom
openbao-support

Conversation

@tobikris
Copy link
Member

No description provided.

@tobikris tobikris requested a review from Copilot August 24, 2025 13:46
@tobikris tobikris changed the base branch from main to bump-deps August 24, 2025 13:47
@tobikris tobikris changed the base branch from bump-deps to main August 24, 2025 13:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds OpenBao support to the vault-mgmt project by introducing a Flavor enum that allows the tool to work with both Vault and OpenBao instances. The refactoring generalizes the codebase to support multiple vault-like implementations while maintaining backward compatibility with existing Vault installations.

Key changes:

  • Added a Flavor enum to distinguish between OpenBao and Vault
  • Refactored test structure to use common modules for both flavors
  • Updated all label references from hardcoded vault-* to flavor-specific labels

Reviewed Changes

Copilot reviewed 20 out of 21 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
tests/e2e/show.rs Removed old e2e test file (being replaced by common modules)
tests/e2e/main.rs Removed old e2e module structure
tests/common/values-openbao.yaml Added OpenBao Helm chart configuration
tests/common/upgrade.rs Converted tests to reusable functions with flavor support
tests/common/show.rs Converted show test to reusable function
tests/common/setup.rs Updated setup to support both flavors
tests/common/prepare.rs Added debug logging and flavor-specific labels
tests/common/mod.rs New module structure for common test code
tests/common/helm.rs Updated to support OpenBao helm repository
tests/02-vault.rs New Vault-specific test file
tests/01-openbao.rs New OpenBao-specific test file
tests/00-setup.rs Basic setup tests
src/wait.rs Updated condition functions to use flavor parameter
src/upgrade.rs Updated upgrade logic to use flavor-aware functions
src/unseal.rs Updated to use flavor-specific pod selection
src/show.rs Updated table construction to use flavor-specific labels
src/main.rs Added flavor CLI parameter and updated function calls
src/lib.rs Minor import reorganization
src/init.rs Added flavor parameter to initialization functions
src/helpers.rs Added Flavor enum and updated helper functions
src/exec.rs Updated exec functionality to use flavor-specific labels
Cargo.toml Version bump to 0.1.6

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@tobikris tobikris force-pushed the openbao-support branch 2 times, most recently from 10e35d0 to 5818a0e Compare August 24, 2025 13:53
@lu1as lu1as self-requested a review August 24, 2025 14:23
@tobikris tobikris merged commit e879464 into main Aug 24, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants